﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Result : System.Web.UI.Page
{
    BookStoreDataContext bs;
    protected void Page_Load(object sender, EventArgs e)
    {
        bs = new BookStoreDataContext();
        bindData();
    }
    public void bindData() {
        //string author = Session["author"].ToString();
        string keyword = Session["keyword"].ToString();
        var emp = (from item in bs.items
                   where
                    item.notes.Contains(keyword)

                   select new { item.name, item.author, item.price, item.notes, item.image_url });
       
        lsvResult.DataSource = emp;
        lsvResult.DataBind();
    }

}